package com.sky.mapper.user;

import com.sky.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    @Select("select * from user where openid = #{openId}")
    public User getByOpenId(String openId);

    @Options(useGeneratedKeys = true, keyColumn = "id", keyProperty = "id")
    public void insert(User user);
}
